package com.dal.activiti.service;

import org.activiti.engine.delegate.DelegateExecution;
import org.activiti.engine.task.Task;

import java.util.List;

/**
 * @program: spring-boot
 * @description:
 * @author: jian
 * @create: 2022-03-21 16:07
 **/
public interface ActivitiService {

    void startProcesses(String id,String business_key);
    List<Task> findTasksByUserId(String userId);
    Task findTaskById(String taskId);
    void completeTask(String taskId,String userId,String result);

    void updateBizStatus(DelegateExecution execution, String status);

    List<String> findUsersForSL(DelegateExecution execution);

    List<String> findUsersForSP(DelegateExecution execution);

    void queryProImg(String processInstanceId) throws Exception;
    String queryProHighLighted(String processInstanceId) throws Exception;
}
